package com.ruoyi.market.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.market.domain.OrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 */
public interface OrderDetailService extends IService<OrderDetail> {


    /**
     * 批量添加
     * @param orderDetailList
     * @return
     */
    public boolean addDetails(List<OrderDetail> orderDetailList);

    /**
     * 根据订单号删除订单详情表
     * @param mkOrderIndent
     * @return
     */
    public boolean deleteByMkOrderIndent(String mkOrderIndent);

    /**
     * 根据订单号查询订单详情列表
     * @param mkOrderIndent
     * @return
     */
    public List<OrderDetail> getDetailListBymkOrderIndent(String mkOrderIndent);

    /**
     * 自定义修改
     * @param orderDetail
     * @return
     */
    public boolean modify(OrderDetail orderDetail);

    /**
     * 查询订单详情
     * @param orderDetail
     * @return
     */
    public OrderDetail getByProductId(OrderDetail orderDetail);

}
